/*-------------------------------------
  DLoad
-------------------------------------*/


#include "startup.xa"

#include "dload.cfg"

        CHARSET_PET

;--------------------------------------

#include "filelib.hx"
#include "iff.hx"
#include "dload.hx"

;--------------------------------------

#include "dload.src"
#include "iff.src"

I41Start:
	PHASE($0700)
#include "i41.src"
	DEPHASE
I41End:

I71Start:
	PHASE($0700)
#include "i71.src"
	DEPHASE
I71End:

I81Start:
	PHASE($0700)
#include "i81.src"
	DEPHASE
I81End:

IHDStart:
	PHASE($0700)
#include "ihd.src"
	DEPHASE
IHDEnd:

LdCommonPsyStart:
	PHASE(LdLoc)
#include "ldcommon.src"
#include "ldcommon.bss"
LdCommonEnd:
	DEPHASE
LdCommonPsyEnd:

Ld41PsyStart:
	PHASE(LdCommonEnd)
#include "ld41.src"
Ld41End:
	DEPHASE

LdHDPsyStart:
	PHASE(LdCommonEnd)
#include "ldhd.src"
LdHDEnd:
	DEPHASE

#if (Ld41End-LdLoc > $0200 )
#print Ld41End-LdLoc-$0200
#error "LdLoc + Ld41 too large!"
#endif

#if (LdHDEnd-LdLoc > $0200 )
#print LdHDEnd-LdLoc-$0200
#error "LdLoc + LdHD too large!"
#endif


T41LdS:
	PHASE($0300)
#include "t41.src"
T41LdEnd:
	DEPHASE
T71LdS:
	PHASE($0300)
#include "t71.src"
T71LdEnd:
	DEPHASE
T81LdS:
	PHASE($0300)
#include "t81.src"
T81LdEnd:
	DEPHASE
THDLdS:
	PHASE($0300)
#include "thd.src"
THDLdEnd:
	DEPHASE

;--------------------------------------

#include "iff.bss"
#include "dload.bss"

;--------------------------------------
